package cn.edu.sdjzu.xg.bysj.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
@AllArgsConstructor
public final class OpenArea implements Comparable<OpenArea>, Serializable {
    private Integer id;
    //方向
    private String area;
    //指导老师
    private Teacher teacher;
    //需要的学生数
    private int positionNum;
    //年份
    private int year;
    //类别
    private GraduateProjectCategory graduateProjectCategory;
    //对学生的要求
    private String requirement;

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id + '\'' +
                ", area='" + area + '\'' +
                ", teacher='" + teacher + '\'' +
                ", positionNum='" + positionNum + '\'' +
                ", year=" + year + '\'' +
                ", graduateProjectCategory=" + graduateProjectCategory + '\'' +
                ", requirement=" + requirement +
                '}';
    }

    @Override
    public int compareTo(OpenArea o) {
        return this.id.compareTo(o.id);
    }
}
